//
//  JHSSickessDoctorListCell.m
//  JHSSweep
//
//  Created by YanYaxing on 2017/3/26.
//  Copyright © 2017年 JHDS. All rights reserved.
//

#import "JHSSickessDoctorListCell.h"
#import "JHSDoctorListModel.h"
#import <UIImageView+WebCache.h>

@interface JHSSickessDoctorListCell ()


/**
 头像
 */
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;


/**
 姓名
 */
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;


/**
 职位
 */
@property (weak, nonatomic) IBOutlet UILabel *positionLabel;

/**
 工作地点
 */
@property (weak, nonatomic) IBOutlet UILabel *workPlaceLabel;

/**
 申请就医
 */
@property (weak, nonatomic) IBOutlet UILabel *applyDoctorLabel;

/**
 鲜花
 */
@property (weak, nonatomic) IBOutlet UILabel *flowersLabel;

/**
 旗帜
 */
@property (weak, nonatomic) IBOutlet UILabel *bannerLabel;

@end

@implementation JHSSickessDoctorListCell

-(void)setDoctorModel:(JHSDoctorListModel *)doctorModel{
    
    self.bannerLabel.text = doctorModel.banner;
    self.flowersLabel.text = doctorModel.flower;
    self.applyDoctorLabel.text = doctorModel.operation_count;
    self.nameLabel.text = doctorModel.doctor_name;
    self.positionLabel.text = doctorModel.doctor_title_name;
    self.workPlaceLabel.text = doctorModel.doctor_hospital_name;
    
    NSURL *url = [NSURL URLWithString:doctorModel.doctor_portrait];
    [self.iconImageView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"doctor_defaultphoto_male"]];
    
}

- (id)valueForUndefinedKey:(NSString *)key
{
    
    return nil;
}


@end
